
<?php

class Article extends Illuminate\Database\Eloquent\Model

{
    protected $table = 'articles';
    public $timestamps = false;

}


///**
// * Article Model
// */
//class Article
//{
//    public static function first()
//    {
//        $connection = mysql_connect("localhost","root","123456");
//        if (!$connection) {
//            die('Could not connect: ' . mysql_error());
//        }
//
//        mysql_set_charset("UTF8", $connection);
//
//        mysql_select_db("mffc", $connection);
//
//        $result = mysql_query("SELECT * FROM articles limit 0,1");
//
//        if ($row = mysql_fetch_array($result)) {
//            echo '<h1>'.$row["title"].'</h1>';
//            echo '<p>'.$row["content"].'</p>';
//        }
//
//        mysql_close($connection);
//    }
//}